package com.example.demo.alarm.mapper;

import com.example.demo.alarm.dao.AirQualityData;
import com.example.demo.alarm.dao.AlarmList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 报警列表
 */
@Mapper
public interface AlarmListMapper {

    void add(AlarmList alarmList);

    List<AlarmList> getList(@Param("start") Integer start,
                            @Param("pageSize") Integer pageSize,
                            @Param("name") String name,
                            @Param("startTime")String startTime,
                            @Param("endTime")String endTime);

    Integer getListCount(@Param("name") String name,
                         @Param("startTime")String startTime,
                         @Param("endTime")String endTime);

    AlarmList get(Integer id);

    AirQualityData integratedSignage(String spaceName);


}
